// DriveNotes. Copyright (c) 2011, Andrei Senchuk. All rights reserved.
package net.taviscaron.drivenotes.shared.service;

import java.util.List;
import javax.jws.WebService;
import net.taviscaron.drivenotes.shared.exceptions.InvalidEntityException;
import net.taviscaron.drivenotes.shared.model.entity.Car;
import net.taviscaron.drivenotes.shared.model.entity.Charging;

/**
 * Charging service
 * @author Andrei Senchuk
 */
@WebService(targetNamespace="http://endpoint.service.server.drivenotes.taviscaron.net/")
public interface ChargingService {
    public List<Charging> findChargingsByCar(Car car);
    public void saveCharging(Charging service) throws InvalidEntityException;
    public Charging findById(Long id);
    public void removeChargingById(Long id);
}
